package cn.yuanqiao.common.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class YqField extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long fieldId;

    /** 所属表的id */
    @Excel(name = "所属表的id")
    private String tableId;

    /** 字段的中文名 */
    @Excel(name = "字段的中文名")
    private String fieldCaption;

    /** 字段名称 */
    @Excel(name = "字段名称")
    private String fieldName;

    /** 字段类型  */
    @Excel(name = "字段类型 ")
    private int fieldType;

    /** 字段长度 */
    @Excel(name = "字段长度")
    private int fieldLength;

    /** 是否主键 0：非主键 1：主键 */
    @Excel(name = "是否主键 0：非主键 1：主键")
    private int BEPK;

    /** 是否允许为空 false:不能为空  true：可以为空 */
    @Excel(name = "是否允许为空 1可以为空 0不可以为空")
    private String NULLABLE;

    /** 说明 */
    @Excel(name = "说明")
    private String DESCRIPTION;

    public void setFieldId(Long fieldId)
    {
        this.fieldId = fieldId;
    }

    public Long getFieldId()
    {
        return fieldId;
    }
    public void setTableId(String tableId)
    {
        this.tableId = tableId;
    }

    public String getTableId()
    {
        return tableId;
    }
    public void setFieldCaption(String fieldCaption)
    {
        this.fieldCaption = fieldCaption;
    }

    public String getFieldCaption()
    {
        return fieldCaption;
    }
    public void setFieldName(String fieldName)
    {
        this.fieldName = fieldName;
    }

    public String getFieldName()
    {
        return fieldName;
    }
    public void setFieldType(int fieldType)
    {
        this.fieldType = fieldType;
    }

    public int getFieldType()
    {
        return fieldType;
    }
    public void setFieldLength(int fieldLength)
    {
        this.fieldLength = fieldLength;
    }

    public int getFieldLength()
    {
        return fieldLength;
    }
    public void setBEPK(int BEPK)
    {
        this.BEPK = BEPK;
    }

    public int getBEPK()
    {
        return BEPK;
    }
    public void setNULLABLE(String NULLABLE)
    {
        this.NULLABLE = NULLABLE;
    }

    public String getNULLABLE()
    {
        return NULLABLE;
    }
    public void setDESCRIPTION(String DESCRIPTION)
    {
        this.DESCRIPTION = DESCRIPTION;
    }

    public String getDESCRIPTION()
    {
        return DESCRIPTION;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("fieldId", getFieldId())
                .append("tableId", getTableId())
                .append("fieldCaption", getFieldCaption())
                .append("fieldName", getFieldName())
                .append("fieldType", getFieldType())
                .append("fieldLength", getFieldLength())
                .append("BEPK", getBEPK())
                .append("NULLABLE", getNULLABLE())
                .append("DESCRIPTION", getDESCRIPTION())
                .toString();
    }
}